/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_provinciaCriteria extends AbstractORMCriteria {
	public final IntegerExpression pr_id_prov;
	public final StringExpression pr_des_prov;
	
	public Trp_provinciaCriteria(Criteria criteria) {
		super(criteria);
		pr_id_prov = new IntegerExpression("pr_id_prov", this);
		pr_des_prov = new StringExpression("pr_des_prov", this);
	}
	
	public Trp_provinciaCriteria(PersistentSession session) {
		this(session.createCriteria(Trp_provincia.class));
	}
	
	public Trp_provinciaCriteria() throws PersistentException {
		this(orm.Basededatosv5PersistentManager.instance().getSession());
	}
	
	public Trp_regionCriteria createRegionCriteria() {
		return new Trp_regionCriteria(createCriteria("region"));
	}
	
	public Trp_colegioCriteria createTrp_colegioCriteria() {
		return new Trp_colegioCriteria(createCriteria("ORM_Trp_colegio"));
	}
	
	public Trp_provincia uniqueTrp_provincia() {
		return (Trp_provincia) super.uniqueResult();
	}
	
	public Trp_provincia[] listTrp_provincia() {
		java.util.List list = super.list();
		return (Trp_provincia[]) list.toArray(new Trp_provincia[list.size()]);
	}
}

